package com.yeyks.other.dto;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shuai
 * @date 2019/12/25 13:06
 */
@Data
public class CarouselAddParam implements Serializable {

    private static final long serialVersionUID = -8810134797826103264L;
    @ApiModelProperty(value = "轮播图名字", hidden = true)
    private String name;

    @ApiModelProperty(value = "图片地址")
    @StrNotEmpty(message = "图片地址不能为空")
    private String image;

    @ApiModelProperty(value = "跳转链接", hidden = true)
    private String url;

    @ApiModelProperty(value = "状态0有效，1无效", hidden = true)
    private Integer status = 0;

    @ApiModelProperty(value = "默认1", hidden = true)
    private Integer type = 1;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime = new Date();

    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime = new Date();
}
